package com.indexingsystem.boss.admin.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.indexingsystem.boss.entity.RoleGroups;

public interface RoleGroupsMapper {
    int deleteByPrimaryKey(String roleGroupId);

    int insert(RoleGroups record);

    int insertSelective(RoleGroups record);

    RoleGroups selectByPrimaryKey(String roleGroupId);
    
    RoleGroups selectByRoleGroupName(String roleGroupName);
    
    List<RoleGroups> ListRoleGroups();

    int updateByPrimaryKeySelective(RoleGroups record);

    int updateByPrimaryKey(RoleGroups record);
    
    
    /**
     * 通过角色组id批量获取角色组集合离线数据信息.
     * @param list
     * @return
     */
    List<RoleGroups> getRoleGroupListByIds(@Param("list") List<String> list);
    
	/**
	 * 批量删除角色组信息.
	 * @param roleGroupIdList
	 * @return
	 */
	int deleteRoleGroupsByIdBatch(@Param("list") List<String> list);
    
	/**
	 * 获取角色组列表
	 * @return
	 */
	List<RoleGroups> queryRoleGroupsInfoList();
    
    /**
     * 分页查询显示角色列表.
     * @return
     */
    List<RoleGroups> queryListByPage(String queryCriteria);
    
    
    /**
     * 获取角色组总数据记录.
     * @return
     */
    Integer getRoleGroupsCount(String queryCriteria);
}